package com.suthund.controller;

import com.suthund.bean.response.BaseResponse;
import com.suthund.util.SendEmailUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by 杨康 on 2017/4/18.
 */
@RestController
public class SendEmailController {

    private Logger log = LoggerFactory.getLogger(this.getClass());

    @Resource
    private SendEmailUtil util;

    @RequestMapping("/send")
    public BaseResponse sendEmail() {
        boolean bool = util.sendEmail("杨康测试", "杨康测试", "");
        log.debug("发送结果{}" + bool);
        return BaseResponse.ResponseSucc();
    }

}
